<%@ page language="java" import="java.sql.*" contentType="text/html;charset=UTF-8" %>
<%/*@ page language="java" import="java.sql.*" contentType="text/html;charset=KSC5601" */%>

<script language="JavaScript">

function ongoing() {
	if (document.form1.password.value==""){
		alert("패스워드를 입력하세요");
		form1.password.focus();
		return;		
	}
	document.form1.submit();
 
}

</script>

<style type="text/css">
<!--
  .table {font-size:9pt; font-family : 돋움 ;font-weight:bold;color:white;background:#6699CC; }
a {text-decoration: none; }
  td	{ font-size : 10pt ; font-family : 돋움 ; font-decoration : none ;}
  font	{ font-size : 10pt ; font-family : 돋움 ; font-decoration : none ; }
  #title{ font-size : 10pt ; font-family : 돋움 ; font-decoration : none ; font-weight : bold ; color : ffffff ;}
 .dform { font-family: 돋움 ; font-size:10pt;color:white;background:#6699CC;}
 .ldTable { border-bottom:#636363 solid 1px;border-color:white; padding-top:5px; padding-bottom:5px; padding-left:3px;
            padding-right:3px; font-size:9pt}
-->
</style>

<%
int intIdx = Integer.parseInt(request.getParameter("idx")); 
%>

<HTML>
<HEAD>
<TITLE>▒▒ 게시판 ▒▒</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<BODY bgcolor="#FFFFFF">

<CENTER>
<FONT size=2><B> 글삭제 패스워드 입력 </B></FONT>
</CENTER>
<HR><P>


<form name="form1" method="GET" action="deleteproc.jsp">
  <table width="300" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
      <td colspan="3" height="129">
        <div align="center"><font size="2" >패스워드를 입력하세요.. </font><br>
        </div>
        <table width="250" border="3" align="center" bgcolor="#F8F1DA" bordercolor="#FFFFFF">
          <tr bgcolor="#F8F1DA">
            <td height="94">
              <div align="CENTER">
                <input type="password" name="password" size="10" maxlength="16">
                <input type="hidden" name="idx" value="<%=intIdx%>"> <!-- 여기 -->
                <input type="button" value="확인" onClick="ongoing()"><!-- 여기 -->
              </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>

<P><HR>

<P align=center>
☆<font color=#8EA2FF> 입력한 패스워드가 일치해야만 글이 삭제 됩니다 </font>☆
</P>

</BODY>
</HTML>